function deleteSentence(id, tabid, start, keyword, propertyKey, oppositePropertyFlag) {
	API.slangSentenceDelete({id: id}, function(res) {
		if (res.code == '0') {
			var param = "/slang/sentence_list.htm?tabid=" + tabid + "&start="+start;
			if(keyword) {
				param = param + "&keyword="+keyword;
			}
			if(propertyKey) {
				param = param + "&propertyKey="+propertyKey + "&oppositePropertyFlag="+oppositePropertyFlag;
			}
			window.location.href = param;
		}
	});
}

function restoreSentence(id, start, keyword, propertyKey, oppositePropertyFlag) {
	API.slangSentenceRestore({id: id}, function(res) {
		if (res.code == '0') {
			var param = "/slang/sentence_list.htm?tabid=28_3&start="+start;
			if(keyword) {
				param = param + "&keyword="+keyword;
			}
			if(propertyKey) {
				param = param + "&propertyKey="+propertyKey + "&oppositePropertyFlag="+oppositePropertyFlag;
			}
			window.location.href = param;
		}
	});
}